package grammer.components;

/**
 * 
 * 
 * @author Minodor
 * 
 *         Enumeration for Subjects - contains only 1 member and a Name-Field -
 *         Is in fact a Person;
 */
public enum SubjectEnum implements Component {
	GENERIC_SUBJECT, NAME;
	private String name;

	public String getName() {
		return this.name;
	}

	@Override
	public Component match(String toMatch) {
		SubjectEnum s = NAME;
		s.setName(toMatch);
		return s;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return name;
	}
}
